<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;
// 加载所有应用目录下的路由文件
foreach (glob(root_path() . 'app/' . '*', GLOB_ONLYDIR) as $path) {
    foreach (glob($path . '/route/' . '*') as $file) {
        if (is_file($file)) {
            include $file;
        }
    }
}
Route::get('think', function () {
    return 'hello,ThinkPHP6!';
});

//数据同步
Route::group('login', function () {
    Route::rule('getDeviceInfo', 'getDeviceInfo');//数据同步[获取设备信息]
    Route::rule('synchronous', 'synchronous');//数据同步[报告][根据设备ID统一插入数据]
    Route::rule('synchronousUser', 'synchronousUser');//数据同步[部门，用户][根据设备ID统一插入数据]
    Route::rule('syncSuccess', 'syncSuccess');//是否同步成功
})->prefix('login.Login/');

Route::rule('/temporary/:code/:type/:jump?', 'index/index/index');